revealer: Pass correct size to child hfw function
authorBenjamin Otte <otte@redhat.com>
Sun, 23 Feb 2014 13:57:44 +0000 (14:57 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 23 Feb 2014 14:40:46 +0000 (15:40 +0100)
The refactoring in b9e37f8d2d4d14d3cb23f56a795fcdd2e6128e88 broke this.

https://bugzilla.gnome.org/show_bug.cgi?id=724999

gtk/gtkrevealer.c

index 511caa8966a988311f7b757ec28fd321a0d38560..f37c24bf13fbd71d1b182a059aa2a4725ec6ef95 100644 (file)
@@ -312,10 +312,10 @@ gtk_revealer_get_child_allocation (GtkRevealer   *revealer,
       transition = effective_transition (revealer);
       if (transition == GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT ||
           transition == GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT)
-        gtk_widget_get_preferred_width_for_height (child, child_allocation->height, NULL,
+        gtk_widget_get_preferred_width_for_height (child, allocation->height, NULL,
                                                    &child_allocation->width);
       else
-        gtk_widget_get_preferred_height_for_width (child, child_allocation->width, NULL,
+        gtk_widget_get_preferred_height_for_width (child, allocation->width, NULL,
                                                    &child_allocation->height);
     }